{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Introduction to Probabilitic Graphical Models" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from IPython.display import Image" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Contents\n", "--------\n", "1. What is machine learning\n", "2. Different ways of learning from data\n", "3. Why probabilistic graphical models\n", "4. Major types of PGMs" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1. What is machine learning\n", "Machine learning is a scientific discipline that explores the construction and study of algorithms that can learn from data. Such algorithms operate by building a model from example inputs and using that to make predictions or decisions, rather than following strictly static program instructions.\n", "\n", "We can take an example of predicting the type of flower based on the sepal length and width of the flower. Let's say we have some data (discretized iris data set on sepal length and width). The dataset looks something like this:" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | length | \n", "width | \n", "type | \n", "
---|---|---|---|
134 | \n", "6 | \n", "3 | \n", "2 | \n", "
148 | \n", "6 | \n", "3 | \n", "2 | \n", "
25 | \n", "5 | \n", "3 | \n", "0 | \n", "
48 | \n", "5 | \n", "4 | \n", "0 | \n", "
86 | \n", "7 | \n", "3 | \n", "1 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "
79 | \n", "6 | \n", "3 | \n", "1 | \n", "
26 | \n", "5 | \n", "3 | \n", "0 | \n", "
101 | \n", "6 | \n", "3 | \n", "2 | \n", "
71 | \n", "6 | \n", "3 | \n", "1 | \n", "
119 | \n", "6 | \n", "2 | \n", "2 | \n", "
150 rows × 3 columns
\n", "\n", " | length | \n", "width | \n", "type | \n", "
---|---|---|---|
134 | \n", "6 | \n", "3 | \n", "2 | \n", "
148 | \n", "6 | \n", "3 | \n", "2 | \n", "
25 | \n", "5 | \n", "3 | \n", "0 | \n", "
48 | \n", "5 | \n", "4 | \n", "0 | \n", "
86 | \n", "7 | \n", "3 | \n", "1 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "
135 | \n", "8 | \n", "3 | \n", "2 | \n", "
6 | \n", "5 | \n", "3 | \n", "0 | \n", "
69 | \n", "6 | \n", "2 | \n", "1 | \n", "
139 | \n", "7 | \n", "3 | \n", "2 | \n", "
90 | \n", "6 | \n", "3 | \n", "1 | \n", "
120 rows × 3 columns
\n", "